﻿<%@ Page Title="Site" Language="C#" Theme="WebAdmin" MasterPageFile="~/WebAdmin/WebAdmin.master" AutoEventWireup="true" CodeFile="AddSite.aspx.cs" Inherits="WebAdmin_AddSite" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div id="contenttext">
        <div style="padding: 10px; text-align:left;">
            <h3 style="margin: 0px;">
                <asp:Literal ID="ltrtitle" runat="server"></asp:Literal></h3>
                <div id="message1" style="display:none;">Here's an info message.</div>
            <fieldset id="step1" runat="server">
                <legend>Site Details</legend>
                <table width="100%">
                    <tr>
                        <td width="30%">
                            Site Name:
                        </td>
                        <td width="70%">
                            <asp:TextBox id="txtName" runat="server" type="text"></asp:TextBox>
                            <asp:RequiredFieldValidator ValidationGroup="Page" ID="RequiredFieldValidator2" runat="server"
                                ControlToValidate="txtName" Display="Dynamic" ErrorMessage="Required Site Name"
                                ForeColor="Red"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="Only Alphanumeric allowed"
                                ValidationGroup="Page" ControlToValidate="txtName" ValidationExpression="^[a-zA-Z0-9_]*$"
                                Display="Dynamic" ForeColor="Red"></asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Site Description:
                        </td>
                        <td>
                            <asp:TextBox id="txtDescription" TextMode="MultiLine" runat="server" type="text"></asp:TextBox>
                        </td>
                    </tr>
                    <tr><td>Site Supported Languages:</td><td>
                    
                    </td></tr>
                    <tr><td colspan="2">
                    <div style="height:200px;overflow:scroll; border:solid 1px silver;">
                    <asp:CheckBoxList ID="CBLLanguages" RepeatColumns="3" RepeatDirection="Horizontal" runat="server"></asp:CheckBoxList></div>
                    </td></tr>
                </table>
                <div style="text-align: right;">
                    <asp:Button ID="btnAddSite" Text="Create Site" runat="server" 
                        onclick="btnAddSite_Click"  /></div>
            </fieldset>
           
        </div>
    </div>
</asp:Content>

